package com.achievement.service;

import java.util.List;

import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;

import com.achievement.entity.Subject;
import com.common.util.TablePage;

public interface ISubjectService {
	public List<Subject> findAll();
	public TablePage<Subject> findPage(Specification<Subject> spec,Pageable pageable);
	public void saveOrUpdate(Subject subject);
	public boolean hasCourse(Long id);
	public boolean hasTeacher(Long id);
	public void delete(Long id);
	public boolean isNumExist(Subject subject);
}
